<!--上传文件-->
<link rel="stylesheet" href="__STATIC__/admin/css/edit_common.css">

<link rel="stylesheet"type="text/css"href="__STATIC__/admin/uploadify/uploadify.css" />


<style>
    #commodity_main input[type=text]{width: 98%;}
    #commodity_main input[type=file]{margin-bottom: 10px;}
    #commodity_main img{width: 120px;height: 120px;border-radius: 50%;background-color: #FFFFFF;border-color:#FFFFFF;}
</style>

<div id="commodity_details">
    <h1 style="margin-top: 0px!important;">
        <img src="__STATIC__/admin/img/ico.png">
        品牌历程
        <a href="javascript:cog.go(-1);"><span><img src="__STATIC__/admin/img/return.png"></span></a>
    </h1>
    </h1>
</div>

<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <form class="form-horizontal" role="form" method="post" url="{:url()}" >
                <input type="hidden" value="{$cog['id']}" name="id">
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 图片地址 </label>
                    <div class="col-sm-9">
                        <input id="file_upload"  type="file" multiple="true" >
                        <img id="upload_org_code_img" src="{$cog['image']}" width="150" height="150">
                        <input id="file_upload_image" name="image" type="hidden" multiple="true" value="{$cog['image']}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 标题 </label>
                    <div class="col-sm-9">
                        <input type="text" name="title" value="{$cog['title']}" class="col-xs-10 col-sm-5">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 说明 </label>
                    <div class="col-sm-9">
                        <textarea name="info" id="info_text" cols="30" rows="10" style="width: 100%;">{$cog['info']}</textarea>
                    </div>
                </div>

                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit">
                            <i class="icon-ok bigger-110"></i>
                            保存
                        </button>
                    </div>
                </div>
            </form>
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->

{load href="__STATIC__/admin/js/image.js" /}
<script>
    $(".pp").addClass("active");
    $(".pp .tp").addClass("active");
</script>
<!-- 配置文件 -->
<script type="text/javascript" src="__STATIC__/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__STATIC__/ueditor/ueditor.all.js"></script>
<!--编辑器语言加载-->
<script type="text/javascript" src="__STATIC__/ueditor/lang/zh-cn/zh-cn.js"></script>

<link type="text/css" rel="stylesheet" href="__STATIC__/ueditor/third-party/video-js/video-js.css"/>
<script language="javascript" type="text/javascript" src="__STATIC__/ueditor/third-party/video-js/video.js"></script>

<!-- 实例化编辑器 -->
<script type="text/javascript">
    let config = {
        initialFrameWidth: "100%", //初化宽度
        initialFrameHeight: 200, //初化高度
        serverUrl: "{$server_url}",
        maximumWords: 99999, removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',//允许的最大字符数 'fullscreen',
        toolbars: [
            ['fullscreen', 'source', '|', 'undo', 'redo','|', 'bold', 'italic', 'underline', 'fontborder',
                'strikethrough', 'removeformat', 'formatmatch', 'autotypeset',
                'blockquote', 'pasteplain', '|', 'forecolor','backcolor', 'insertorderedlist',
                'insertunorderedlist', 'selectall', 'cleardoc', '|','rowspacingtop', 'rowspacingbottom',
                'lineheight', '|','customstyle', 'paragraph', 'fontfamily', 'fontsize','|','indent' , 'justifyleft', 'justifycenter','justifyright',
                'justifyjustify',  '|', 'link', 'unlink', 'horizontal']
        ]
    };
    let ue = UE.getEditor('info_text',config);
</script>
